﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class IronNpc:Npc
    {
        public string iron { get; set; }
        public override void speak()
        {
            Console.WriteLine("名字：{0}  类型：{1}  铁：{2}",base.name,Npctype.铁匠,this.iron);
        }
        public IronNpc(string name,string iron):base(name) { this.iron = iron; }
        
    }
}
